package defaultPackage;
import java.util.Random;


public class TestEvent implements Event
{
	static int probibility = 10;
	private static final int min = 100,max = 1000;
	private static final Random rand = new Random();
	private int duration;
	int x;
	public void update(MainClass main) 
	{
		if(duration%10 == 0)
		{
		x++;
		main.grid.tiles[x][50].changeType(tileType.Hull);
		}
		duration--;
	}

	public void init(MainClass main) 
	{
		x = 50;
		duration =rand.nextInt(max-min)+min;
	}
	public boolean isDone()
	{
		return duration<0;
	}
}
